﻿using System;
using System.Collections.Generic;
using System.IO;
using Common;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace UnitTest
{
    [TestClass]
    public class UnitTest1
    {
        public class Test
        {
            public int TestId { get; set; }
            public string Name { get; set; }
            public DateTime CreateDate { get; set; }
        }

        [TestMethod]
        public void TestMethod1()
        {
            string result = "";

            #region AderTemplates
            string path = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"RequestTemplate\Test.xml");
            Dictionary<string, object> param = new Dictionary<string, object>()
            {
                {"Test",new Test() { TestId = 1, Name = "名字", CreateDate = DateTime.Now }}
            };
            result= TemplateHelper.RunTemplate(path,param);
            #endregion

            Console.ReadKey();
        }
    }
}
